const controllers = require('../controllers');

const eLancoController = controllers.eLanco;

module.exports = (Elanco) => {
  Elanco.getFormDetail = eLancoController.getFormDetail;
  Elanco.saveFormDetail = eLancoController.saveFormDetail;
  Elanco.beforeRemote('submitFormDetail', eLancoController.submitFormDetailBefore);
  Elanco.submitFormDetail = eLancoController.submitFormDetail;
  Elanco.afterRemote('submitFormDetail', eLancoController.submitFormDetailAfter);
  Elanco.beforeRemote('cancelFormDetail', eLancoController.cancelFormDetailBefore);
  Elanco.cancelFormDetail = eLancoController.cancelFormDetail;
  Elanco.afterRemote('cancelFormDetail', eLancoController.cancelFormDetailAfter);
  Elanco.deleteFormDetail = eLancoController.deleteFormDetail;
  Elanco.beforeRemote('approvalFormDetail', eLancoController.approvalFormDetailBefore);
  Elanco.approvalFormDetail = eLancoController.approvalFormDetail;
  Elanco.afterRemote('approvalFormDetail', eLancoController.approvalFormDetailAfter);
  Elanco.beforeRemote('rejectFormDetail', eLancoController.rejectFormDetailBefore);
  Elanco.rejectFormDetail = eLancoController.rejectFormDetail;
  Elanco.afterRemote('rejectFormDetail', eLancoController.rejectFormDetailAfter);
  Elanco.initSubmitPage = eLancoController.initSubmitPage;
  Elanco.getSubmitList = eLancoController.getSubmitList;
  Elanco.initApprovalPage = eLancoController.initApprovalPage;
  Elanco.getApprovalList = eLancoController.getApprovalList;
  Elanco.getExportList = eLancoController.getExportList;
  Elanco.exportList = eLancoController.exportList;
  Elanco.uploadAttachment = eLancoController.uploadAttachment;
  Elanco.downloadAttachment = eLancoController.downloadAttachment;
  Elanco.flowDetail = eLancoController.flowDetail;
  Elanco.customMethod = eLancoController.customMethod;
};
